import{r as e}from"./DAXXjFlN13g7BR.js";import{ut as t}from"./B603vO-13smUKN.js";import{t as n}from"./CSydypB71opzEM.js";import{o as r}from"./BbxvatETxeTHf.js";var i=e({routerGoto:()=>s}),a=t(`router-goto`,!1);async function o(e,t=!1){let r=n.resolve(e);if(a(`+route goto:`,r,`current location.href:`,location.href),location.href.endsWith(r.href)){a.warn(`Cyclic goto`,e);return}return t?await n.replace(e):await n.push(e)}var s={async page(e){return await o({name:e})},async home(){return s.page(`home`)},async create(){return s.page(`create`)},async import1(){return s.page(`import1`)},async workspace(e,t=!1){await o({name:`workspace`,params:{workspaceId:e}},t)},async workspacePage(){if(r.workspace?.id)return await s.workspace(r.workspace.id)}};export{i as n,s as t};